package com.woniu.cq.medical.controller;


import com.woniu.cq.medical.common.Result;
import com.woniu.cq.medical.controller.form.ActInfoForm;
import com.woniu.cq.medical.service.IActOrderInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Lucas
 * @since 2020-09-10
 */
@RestController
@RequestMapping("/medical/act-order-info")
@CrossOrigin("*")//解决跨域问题
public class ActOrderInfoController {

    @Autowired
    private IActOrderInfoService actOrderInfoService;

    @RequestMapping("selectPatientByIdCard")
    public Result selectPatientByIdCard(String idCard, String caseId){
        List<ActInfoForm> actInfoForms = actOrderInfoService.selectPatientByIdCard(idCard, caseId);
        return Result.success(actInfoForms);
    }
}

